﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;


namespace mscook.core.domain
{
    public class CookBookOfLoginUser : Entity
    {
        [Required(ErrorMessage = "菜名必填")]
        [StringLength(12, ErrorMessage = "菜名最长12位")]
        public virtual string Name
        {
            get;
            set;
        }

        [Required(ErrorMessage = "简介必填")]
        [StringLength(10000, ErrorMessage = "菜品简介请在10000字符内")]
        public virtual string Summary
        {
            set;
            get;
        }

        public virtual string ImageName
        {
            get;
            set;
        }
       


    }
}
